local sk__fangu = fk.CreateSkill {

  name = "sk__fangu",

  tags = { Skill.Compulsory, },

}



sk__fangu:addEffect(fk.DamageFinished, {
  name = "sk__fangu",
  anim_type = "special",
  can_trigger = function(self, event, target, player, data)
    if target == player and player:hasSkill(sk__fangu.name) then
      local turn_event = player.room.logic:getCurrentEvent():findParent(GameEvent.Turn)
      return turn_event
    end
  end,
  on_use = function(self, event, target, player, data)
    local turn_event = player.room.logic:getCurrentEvent():findParent(GameEvent.Turn)
    if turn_event then
      player:gainAnExtraTurn()
      turn_event:shutdown()
    end
  end,
})

return sk__fangu